#include "internal.h"

/*
 * Preempt the current task with a newly woken task if needed:
 */
static void wakeup_preempt_rt(struct rq *rq, struct task_struct *p, int flags)
{
    struct task_struct *donor = rq->donor;

    if (p->prio < donor->prio)
    {
        resched_curr(rq);
        return;
    }

    check_preempt_equal_prio(rq, p);
}
